import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import VueAxios from 'vue-axios'
import axios from 'axios'
import echarts from 'echarts'
import store from './store'
import echartsGL from 'echarts-gl'
import {
  post,
  get,
  del,
  put
} from "../src/axiosConfig/axios";
import china from 'echarts/map/json/china.json'
echarts.registerMap('china', china)
Vue.use(VueAxios, axios)
Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.prototype.$echartsGL = echartsGL
Vue.prototype.$axios = axios // http://flkj.free.idcfengye.com
axios.defaults.baseURL = 'https://www.echartsjs.com'
axios.defaults.timeout = 5000
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$del = del;
Vue.prototype.$put = put;
Vue.use(iView);
new Vue({
  el: '#app',
  router,
  axios,
  store,
  render: h => h(App)
});